Visual Studio Code Installation
Install Visual Studio Code
Install Visual Studio Code Extensions
Add Workspace Settings
- Open Workspace Settings (JSON) by clicking Ctrl+Shift+P and searching for it.
- Add the following configuration there (to upload files under
/upload/):"markdown.copyFiles.destination": { "/**/*": "uploads/${documentBaseName}/" } - Add the following configuration option to support Gollum-style alias links:
"foam.wikilinks.order": "alias-first" - Remember to add commas (,) after appropriate settings.
Add Shortcuts to User Settings (Optional)
Click Ctrl+Shift+P and search for:
- Markdown All in One: Toggle Code Span, and click the gear icon and set its key binding to Win+Shift+C.
- Markdown All in One: Toggle Code Block, and click the gear icon and set its key binding to Win+Alt+C.
Accessing the Repository
Install Git
- Download Git.
- Install Git.
Install GitHub Desktop (Optional)
You can also install GitHub Desktop for a GUI.
Cloning Repository
(Use these instructions if you have write rights to the GnollHack Wiki repository. They can be granted by Sound Mind Games admins.)
- Open your terminal (e.g. PowerShell or bash).
- Go to the directory under which you want to clone GnollHack wiki, e.g. type
cd C:\repos. If the directory does not exist, you must create it. - Type
git clone https://github.com/hyvanmielenpelit/GnollHackWiki.gitand press Enter. - GnollHack wiki should now install to the
GnollHackWikisubdirectory.
Forking Repository and Making Pull Request
(Use these instructions if you don't have write rights to the GnollHack Wiki repository but you want to do a contribution.)
- Go to the GnollHackWiki repository on GitHub.
- Fork the repository by clicking the Fork badge.
- Clone the forked repository to the local machine.
- Make changes and commit them.
- Push changes the forked repository.
- Make a pull request to the GnollHack Wiki repository from the forked repository on GitHub.
You can read more about forking repositories and making pull requests in GitHub documentation: Creating a pull request from a fork.
How-To-Do Guide
Open Markdown Preview
Press Ctrl+Shift+V.
Creating New Page from Wiki Link
You can create a new Markdown page by holding Ctrl down while clicking a wiki link (e.g. [[New Page]]).
Add File or Image
- Start dragging a file or an image in File Explorer.
- Before dropping hold Shift down.
- Drop the file into a Markdown file.
- It should automatically upload it and create an appropriate tag for it.
Publish Changes
- Commit changes using the Source Control view.
- Sync them.
- If you updated the GnollHack Wiki repository directly, it takes up to 5 minutes for the changes to appear online.